package org.niugang.controller;

import org.niugang.annotation.LogApi;
import org.niugang.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 
 * Copyright: Copyright (c) 2018 863263957@qq.com
 * 
 * @ClassName: BlogController.java
 * @version: v1.0.0
 * @author: niugang
 * @date: 2018年9月18日 下午8:34:19
 */
@RestController
@RequestMapping("blogservice")
public class BlogController {

	@Autowired
	private UserService userService;

	@GetMapping("user")
	@LogApi(value = "日志服务调用获取用用户服务", type = "调用")
	public String getUserInfo() {
		return userService.getUserInfo();
	}
}
